From ef5fb8d673a1b6c80f8a06dce5c5ee20aa7a16a7 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 18 Mar 2011 15:00:11 -0400 Subject: [PATCH] radiobutton: build the new state flags from the previous flags on click This fixes e.g. sensitivity issues with GtkRadioButton on state update. https://bugzilla.gnome.org/show_bug.cgi?id=645172 --- gtk/gtkradiobutton.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtk/gtkradiobutton.c b/gtk/gtkradiobutton.c index 31651962ec..590a085e54 100644 --- a/gtk/gtkradiobutton.c +++ b/gtk/gtkradiobutton.c @@ -800,6 +800,8 @@ gtk_radio_button_clicked (GtkButton *button) g_object_ref (GTK_WIDGET (button)); + new_state = gtk_widget_get_state_flags (GTK_WIDGET (button)); + if (gtk_toggle_button_get_active (toggle_button)) { tmp_button = NULL; -- 2.30.2